package Action;

import PO.CutOffDatePage;
import PO.JiJianPage;
import com.epwk.action.Action;
import com.epwk.action.JSExecutor;
import com.epwk.tools.DateFormat;
import org.openqa.selenium.By;

/**
 * Created by Administrator on 2016/11/25.
 */
public class JiJian {

    public static void jiJian(int cash,int gaojianNum,int day) throws InterruptedException {
        //        滚动滚动条
        JSExecutor.jsExecutor("var q=document.documentElement.scrollTop=1300");

        Action.click(JiJianPage.model_xs);
        Action.sendkeys(JiJianPage.cash_xs,String.valueOf(cash));
        Action.click(JiJianPage.jijian);
        Action.sendkeys(JiJianPage.gaojiannum,String.valueOf(gaojianNum));
        //        设置截止时间
//        CutOffDate.cutOffDate(day, type);

        Action.clear(CutOffDatePage.CutOffDate_xs);
        Action.sendkeys(CutOffDatePage.CutOffDate_xs,DateFormat.beforeORLateDate(day,DateFormat.COMMON_DATE_FORMAT));

    }
}
